package com.hns.can.safety.web;

import com.hns.can.common.domain.GridPage;
import com.hns.can.common.web.BaseController;
import com.hns.can.safety.service.BaseLineBlackRelHisService;
import com.hns.frame.mybatis.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 线路黑点分配历史Controller
 *
 * @version Revision 2.0.0
 * @author:jeffxu
 * @email:
 */
@Controller
@RequestMapping("/baseLineBlackRelHis")
public class BaseLineBlackRelHisController extends BaseController {

    @Autowired
    private BaseLineBlackRelHisService baseLineBlackRelHisService;

    /**
     * 查询线路黑点分配历史列表（分页）
     *
     * @param relId
     * @return
     * @throws Exception
     */
    @RequestMapping("/searchBaseLineBlackRelHisPage")
    @ResponseBody
    public Object searchBaseLineBlackRelHisPage(String relId) throws Exception {
        Pagination page = baseLineBlackRelHisService.searchBaseLineBlackRelHisPage(relId);
        GridPage grid = new GridPage(page);
        return this.getReturnResult(grid);
    }

}
